<template>
    <view class="container">
		<view class="logo">
			<image src="../../static/sleep.gif"></image>
			<view class="textBox">
				<view class="t1">大王日记</view>
				<view class="t2">你的情绪树洞</view>
			</view>
		</view>
    </view>
</template>

<script lang="ts" setup>
    function Qtime(timeS){
        let timeStart = setInterval(function(){
            timeS --;
            if(timeS == 0){
                clearInterval(timeStart);
                uni.redirectTo({
                    url:'/pages/home/home'
                })
            }
            console.log(timeS)
        },1000,timeS)
	}
	Qtime(6)
</script>

<style lang="scss" scoped>
    .container {
		background-color:#fff2bd;
		width: 100vw;
		height: 100vh;
		display: flex;
		justify-content: center;
		.logo{
			position: absolute;
			z-index: 2;
			bottom: 20rpx;
			display: flex;
			align-items: center;
		}
		image{
			width: 120rpx;
			height: 120rpx;
		}
		.textBox{
			display: flex;
			flex-direction: column;
			
			color: #85784b;
			.t1{
				font-weight: 800;
				font-size: 35rpx;
			}
			.t2{
				font-size: 25rpx;
			}
		}
    }
    
    
    
</style>
